﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using HySoft.Cash.BaseClass;
using System.Configuration;
using HySoft.Cash;


namespace PayRoller.Code
{
    public class Misc
    {
        /// <summary>
        /// 获取用户的还款信息列表
        /// </summary>
        /// <param name="EmpSid"></param>
        /// <returns></returns>
        public static DataTable GetBankPayment(int EmpSid)
        {
            //int invoiceOverDueDays= AppSettings.InvoiceOverDueDays;
            SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@EmpSid", EmpSid), new SqlParameter("@InvoiceOverDueDate", SafeDateTime.LocalToday) };
            return SqlHelper.ExecuteDataset(ConfigurationManager.AppSettings["SQLConnString"], CommandType.StoredProcedure, "GetBankPayment", commandParameters).Tables[0];
        }
    }
}